package project.rbac.service;

import project.rbac.domain.dto.BaseDto;
import project.rbac.domain.entity.BaseEntity;
import project.rbac.domain.vo.Result;

/**
 * 业务层-通用业务接口
 *
 * @author 刘嘉薏
 * @since 2025/5/31 16:58
 */
public interface IBaseService<Entity extends BaseEntity, Dto extends BaseDto> {
    boolean existsById(int id);

    Entity findById(int id);

    Result list();

    Result create(Dto dto);

    Result update(Dto dto, int id);
}
